#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.14.5
 Author:         robotwu

 Script Function:
	自动安装Opera

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#RequireAdmin
;自动安装Opera 运行环境
ToolTip ("正在安装 01.installRegterm.exe"&@CRLF&"禁止操作鼠标和键盘",@DesktopWidth - 130,@DesktopHeight - 70,"提醒",1,2)
Run("01.installRegterm.exe")
WinWaitActive("[CLASS:GLBSWizard]")
WinWaitActive("Installation Complete")
Sleep(100)
Send("!f")
ToolTip ("正在安装 02.installOperaPrintCtrl.exe"&@CRLF&"禁止操作鼠标和键盘",@DesktopWidth - 130,@DesktopHeight - 70,"提醒",1,2)
RunWait("02.installOperaPrintCtrl.exe")

ToolTip ("正在安装 03.ar91eng.exe"&@CRLF&"禁止操作鼠标和键盘",@DesktopWidth - 130,@DesktopHeight - 70,"提醒",1,2)
RunWait("03.ar91eng.exe /sAll")

ToolTip ("正在安装 04.opera_jinit_1012_25.exe"&@CRLF&"禁止操作鼠标和键盘",@DesktopWidth - 130,@DesktopHeight - 70,"提醒",1,2)
Run("04.opera_jinit_1012_25.exe")

WinWaitActive("[CLASS:GLBSWizard]")
Sleep(100)
Send("!n")
WinWaitActive("Installation Complete")
Sleep(100)
Send("!f")

ToolTip ("正在安装 06.installScreenWiz.exe"&@CRLF&"禁止操作鼠标和键盘",@DesktopWidth - 130,@DesktopHeight - 70,"提醒",1,2)
RunWait("06.installScreenWiz.exe")

$pro = EnvGet("PROCESSOR_ARCHITECTURE")
If ($pro == "AMD64") Then
	FileCopy("jvm.dll","C:\Program Files (x86)\oracle\JInitiator 1.3.1.25\bin\hotspot\jvm.dll",1)
Else
	FileCopy("jvm.dll","C:\Program Files\oracle\JInitiator 1.3.1.25\bin\hotspot\jvm.dll",1)
EndIf
Run("Explorer http://10.196.129.11")
